/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.MsoEditingType;
import com.bedatadriven.mso.core.MsoSegmentType;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.FreeformBuilder*/
public class FreeformBuilder extends JavaScriptObject {

	protected FreeformBuilder() { }
	public native final ExcelApplication getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	protected native final void _addNodes( int segmentType,  int editingType, float x1, float y1,  Object x2,  Object y2,  Object x3,  Object y3)/*-{
		this.AddNodes( segmentType, editingType, x1, y1, x2, y2, x3, y3);
	}-*/;

	public final void addNodes(MsoSegmentType segmentType, MsoEditingType editingType, float x1, float y1,  Object x2,  Object y2,  Object x3,  Object y3){
		_addNodes(segmentType.getValue(), editingType.getValue(), x1, y1, x2, y2, x3, y3);
	}
	public native final Shape convertToShape()/*-{
		return this.ConvertToShape( );
	}-*/;

}
